(local wezterm (require :wezterm))
(local act wezterm.action)
{1 (wezterm.on :format-tab-title
               (fn [tab tabs panes config hover max-width]
                 (var pane-title tab.active_pane.title)
                 (local user-title tab.active_pane.user_vars.panetitle)
                 (when (and (not= user-title nil) (> (length user-title) 0))
                   (set pane-title user-title))
                 [{:Text (.. " " pane-title " ")}]))
 :color_scheme :OneHalfDark
 :default_prog [:/usr/bin/zsh]
 :enable_wayland true
 :font (wezterm.font {:family "Maple Mono NF CN"})
 :font_size 12
 :keys [{:action (act.ActivateTabRelative 1) :key :Tab :mods :CTRL}
        {:action (act.ActivateTabRelative (- 1)) :key :Tab :mods :CTRL|SHIFT}
        {:action act.ShowLauncher :key :l :mods :CTRL|SHIFT}]
 :launch_menu [{:args [:/bin/zsh :-lic :nvim]
                :cwd :/home/weather/Code/configuration-files
                :label :configuration-files}
               {:args [:cd :/mnt/15/Work/twoplus] :label :15-twoplus-local}
               {:args [:ssh :-t "csy@192.168.0.15"] :label :15}
               {:args [:ssh
                       :-t
                       "csy@192.168.0.15"
                       "source ~/.zshrc &&cd Work/vnm && nvim ; /bin/zsh -lic"]
                :label :15-vnm}
               {:args [:ssh
                       :-t
                       "csy@192.168.0.15"
                       "source ~/.zshrc &&cd Work/twoplus && nvim ; /bin/zsh -lic"]
                :label :15-twoplus}
               {:args [:ssh
                       :-t
                       "csy@192.168.0.15"
                       "source ~/.zshrc && cd Work/two && nvim  ; /bin/zsh -lic"]
                :label :15-two}
               {:args [:ssh
                       :-t
                       "csy@192.168.0.15"
                       "source ~/.zshrc &&cd Work/v2v_ws_plugin && nvim ; /bin/zsh -lic"]
                :label :15-ws-plugin}
               {:args [:ssh
                       :-t
                       "csy@192.168.0.15"
                       "source ~/.zshrc &&cd Work/vnm_gui && nvim ; /bin/zsh -lic"]
                :label :15-vnm-gui}
               {:args [:ssh :-t "root@192.168.0.65"] :label :OnePlus13}]}
